import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
type int = number;
//class SPanicBuyPlayerMsg
    
    export  class SPanicBuyPlayerMsg extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SPanicBuyPlayerMsg();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.code);
            arg1.writeInt(this.item1Code);
            arg1.writeInt(this.item1BuyAmount);
            arg1.writeInt(this.item2Code);
            arg1.writeInt(this.item2BuyAmount);
            arg1.writeInt(this.item3Code);
            arg1.writeInt(this.item3BuyAmount);
            arg1.writeDate(this.buyItemDt);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.code = arg1.readInt();
            this.item1Code = arg1.readInt();
            this.item1BuyAmount = arg1.readInt();
            this.item2Code = arg1.readInt();
            this.item2BuyAmount = arg1.readInt();
            this.item3Code = arg1.readInt();
            this.item3BuyAmount = arg1.readInt();
            this.buyItemDt = arg1.readDate();
            return;
        }

        public /* const */_type: int=12348;

        public /* var */code: int;

        public /* var */item1Code: int;

        public /* var */item1BuyAmount: int;

        public /* var */item2Code: int;

        public /* var */item2BuyAmount: int;

        public /* var */item3Code: int;

        public /* var */item3BuyAmount: int;

        public /* var */buyItemDt: Date;

        public static /* var */_regist: SPanicBuyPlayerMsg;
    }

            SPanicBuyPlayerMsg._regist = new SPanicBuyPlayerMsg(true);
        